#!/bin/bash
##按顺序启动ssh、nginx、mysql、emqx、node服务
service ssh start
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
chown -R mysql:mysql /var/lib/mysql
service mysql start
chown -R emqx:emqx /var/lib/emqx;emqx start
cd /usr/local/srs/objs/nginx/html/videoplatform/svr
#forever start svr.js
#npm -v
nohup node svr.js &
#cnpm install forever -g
#/usr/local/node/lib/node_modules/forever/bin/forever start svr.js
#/usr/local/srs/objs/srs -c /usr/local/srs/conf/srs.conf
